import Vue from 'vue'
import App from './App'
import uView from "uview-ui";

import './store'
import './common/api.js'
import './common/tmp.js'
import './common/http.js'
import './common/utils.js'
import './components/web-socket/socket.js'
/**
 * 全局默认分享
 */
Vue.mixin({
	onShareAppMessage (res) {
		if(res.from === 'menu') {
			//你的分享配置
			return {
				title: '加车用尿素，就用车用尿素小程序！自助加注，更方便快捷。',
				path: '/pages/index/index',
				imageUrl: ''
			};
		}
	}
})
Vue.config.productionTip = false
Vue.use(uView); 

App.mpType = 'app'
const app = new Vue({
    ...App
})

app.$mount()
